home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
web
/
noweb
/
src
/
lib
/
emptydefn
< prev
next >
Wrap
Text File
|
1995-02-24
|
260b
|
10 lines
#!/bin/sh
#
# notangle filter that makes the definition of an empty chunk <<>>=
# stand for a continuation of the previous chunk definition.
nawk 'BEGIN { lastdefn = "@defn " }
/^@defn $/ { print lastdefn; next }
/^@defn / { lastdefn = $0 }
{ print }' "$@"